package com.kaiwukj.android.ufamily.mvp.http.entity.result;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;

/**
 * 我的房屋
 */
public class MyHouseResult extends BaseBean {
    /**
     * "communityName": "开物小区1",
     * "buildingName": "楼栋2",
     * "unitNum": "1单元",
     * "roomNum": "1001",
     * "type": 2,
     * "roomId": 12
     */

    private String communityName;
    private String buildingName;
    private String unitNum;
    private String roomNum;
    private Integer type;//1:业主   2:租户   3:家属
    private Integer roomId;

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getUnitNum() {
        return unitNum;
    }

    public void setUnitNum(String unitNum) {
        this.unitNum = unitNum;
    }

    public String getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(String roomNum) {
        this.roomNum = roomNum;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getGroupAddress() {
        return String.format("%s%s%s", getBuildingName(), getUnitNum(), getRoomNum());
    }
}
